obj-m += char_driver.o

MAKE=make 
KERNEL_DIR=/lib/modules/$(shell uname -r)/build

modules:
	$(MAKE) -C $(KERNEL_DIR) M=$(PWD) modules

#modules_install:
#	$(MAKE) -C $(KERNEL_DIR) M=$(PWD) INSTALL_MOD_PATH=/tmp modules_install

clean:
	rm -f *.ko *.o *.mod.o *.mod.c *.symvers *.order *.mod .*.cmd
